package com.lkyh.mes.sso.u;

import com.ulisesbocchio.jasyptspringboot.encryptor.DefaultLazyEncryptor;
import org.jasypt.encryption.StringEncryptor;
import org.springframework.core.env.StandardEnvironment;

public class Jas {
	public static void main(String[] args) {
		System.setProperty("jasypt.encryptor.password", "mes");
		StringEncryptor stringEncryptor = new DefaultLazyEncryptor(new StandardEnvironment());

		//加密方法
		System.out.println(stringEncryptor.encrypt("mp"));
		System.out.println(stringEncryptor.decrypt("piydK+sUVgU7uOWfqnRNrw=="));

		//StringEncryptor stringEncryptor = new DefaultLazyEncryptor();
	}
}
